#!/bin/bash -l

TOOLS_DIRECTORY=$(dirname "$0")
TOOLS_DIRECTORY=$(cd "$TOOLS_DIRECTORY" && pwd -P)
cd "$TOOLS_DIRECTORY"
echo "删除res"
rm -rf ./res
echo "拷贝resources"
cp -r ./resources ./res
echo "导出ccui"
/Applications/Cocos/Library/Cocos.Tool publish -r -f "$TOOLS_DIRECTORY"/ccui/ccui.ccs -o "$TOOLS_DIRECTORY"/res -d Serializer_Json
echo "脚本结束!!!!!!!"
